import axios from '../untils/request'

//获取图文资讯
export const mygraphic=()=>{
    return axios({
        url:'/api/getnewslist'
    })
}
//获取图文资讯详情
export const graphicDetails=(newid)=>{
    return axios({
        url:`/api/getnew/${newid}`
    })
}
//获取评论信息
export const getscomments=(artid,params)=>{
    return axios({
        url:`/api/getcomments/${artid}`,
            params
    })
}
// 提交评论信息
export const getsubmitComments=(artid,data)=>{
    return axios({
        method:'post',
        url:`/api/postcomment/${artid}`,
        data: `content=${data.content}`
    })
}